Author: Steve Harrison (steve3000)
System: BBC Microcomputer (but also works directly on Acorn Archimedes)
Language: BBC BASIC (all versions 1-5)
Length of source code: 63 bytes
Length of executable: 63 bytes

Description of how it works:

The 14 rows of tree shape are encoded into a text string, to save space and keep the code to a single line of BASIC. A FOR-loop prints out each row by pulling the characters one at a time from the string, removing text character offset (65), then using STRING$ to print the correct number of stars, centered with PRINTTAB(20-x/2). If using on another system with wider screen than 40 characters (e.g. Acorn Archimedes), change the 20 in PRINTTAB to half the screen width, to keep the centred.

To use on BBC emulator, e.g. B-em or BeebEm, load the disc image "BBCBASICtree.ssd" and type CHAIN"BBCTREE". Also type PRINT TOP-PAGE to confirm length.

Files in ZIP:

$.BBCtree           - 63 byte original BASIC code from a BBC Micro
BBCBASICtree.ssd    - BBC DFS disc image, containing code ready for an emulator
BBCTree image.png   - Image of the code run on a BBC Micro
BBCTree listing.png - Image of the code listed on a BBC Micro
BBCTree listing text.txt - Windows Notepad file listing the BASIC code
Info and description.txt - This file
